package com.niodata.dp.monitor.sharelib.entity.presto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by ndp on 17-12-25.
 */
public class PrestoSummary implements Serializable {

  //com.facebook.presto.failureDetector:name=HeartbeatFailureDetector
  //活动节点
  private int activeCount;
  //失效的节点
  private int failedCount;
  //所有节点数目
  private int totalCount;
  //java.lang:type=Threading
  private int threadCount;
  //com.facebook.presto.execution:name=QueryManager
  //正在执行的查询数量
  private double runningQueriesCount;
  //五分钟内失败的查询数量
  private double failedQueriesCountFiveMin;
  //五分钟内失败的Internal查询数量
  private double failedInternalQueriesCountFiveMin;
  //五分钟内失败的External查询数量
  private double failedExternalQueriesCountFiveMin;
  //五分钟内的用户错误
  private double userErrorCountFiveMin;
  //
  private double startedQueriesCountFiveMin;

  private double executionTimeP50FiveMin;

  private List<PrestoNode> prestoNodes;
  private List<PrestoQuery> prestoQueries;

  //add by dp 2018-3-19 15:12:13
  private String coordinator;
  private String deadNodes;
  //end

  private Date createTime;

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public int getActiveCount() {
    return activeCount;
  }

  public void setActiveCount(int activeCount) {
    this.activeCount = activeCount;
  }

  public int getFailedCount() {
    return failedCount;
  }

  public void setFailedCount(int failedCount) {
    this.failedCount = failedCount;
  }

  public int getTotalCount() {
    return totalCount;
  }

  public void setTotalCount(int totalCount) {
    this.totalCount = totalCount;
  }

  public int getThreadCount() {
    return threadCount;
  }

  public void setThreadCount(int threadCount) {
    this.threadCount = threadCount;
  }

  public double getRunningQueriesCount() {
    return runningQueriesCount;
  }

  public void setRunningQueriesCount(double runningQueriesCount) {
    this.runningQueriesCount = runningQueriesCount;
  }

  public double getFailedQueriesCountFiveMin() {
    return failedQueriesCountFiveMin;
  }

  public void setFailedQueriesCountFiveMin(double failedQueriesCountFiveMin) {
    this.failedQueriesCountFiveMin = failedQueriesCountFiveMin;
  }

  public double getFailedInternalQueriesCountFiveMin() {
    return failedInternalQueriesCountFiveMin;
  }

  public void setFailedInternalQueriesCountFiveMin(double failedInternalQueriesCountFiveMin) {
    this.failedInternalQueriesCountFiveMin = failedInternalQueriesCountFiveMin;
  }

  public double getFailedExternalQueriesCountFiveMin() {
    return failedExternalQueriesCountFiveMin;
  }

  public void setFailedExternalQueriesCountFiveMin(double failedExternalQueriesCountFiveMin) {
    this.failedExternalQueriesCountFiveMin = failedExternalQueriesCountFiveMin;
  }

  public double getUserErrorCountFiveMin() {
    return userErrorCountFiveMin;
  }

  public void setUserErrorCountFiveMin(double userErrorCountFiveMin) {
    this.userErrorCountFiveMin = userErrorCountFiveMin;
  }

  public double getStartedQueriesCountFiveMin() {
    return startedQueriesCountFiveMin;
  }

  public void setStartedQueriesCountFiveMin(double startedQueriesCountFiveMin) {
    this.startedQueriesCountFiveMin = startedQueriesCountFiveMin;
  }

  public double getExecutionTimeP50FiveMin() {
    return executionTimeP50FiveMin;
  }

  public void setExecutionTimeP50FiveMin(double executionTimeP50FiveMin) {
    this.executionTimeP50FiveMin = executionTimeP50FiveMin;
  }

  public List<PrestoNode> getPrestoNodes() {
    return prestoNodes;
  }

  public void setPrestoNodes(
        List<PrestoNode> prestoNodes) {
    this.prestoNodes = prestoNodes;
  }

  public List<PrestoQuery> getPrestoQueries() {
    return prestoQueries;
  }

  public void setPrestoQueries(
        List<PrestoQuery> prestoQueries) {
    this.prestoQueries = prestoQueries;
  }

  public String getCoordinator() {
    return coordinator;
  }

  public void setCoordinator(String coordinator) {
    this.coordinator = coordinator;
  }

  public String getDeadNodes() {
    return deadNodes;
  }

  public void setDeadNodes(String deadNodes) {
    this.deadNodes = deadNodes;
  }
}
